from api_tests.base_api import BaseApi

class AppGetVoApi:
    def __init__(self):
        self.api = BaseApi()
        self.url = f"{self.api.base_url}/app/get/vo"
    
    def get_app_vo(self, app_id):
        """
        根据ID获取应用详情
        
        Args:
            app_id: 应用ID
            
        Returns:
            str: 格式化的响应结果
        """
        # 构建查询参数
        params = {
            "id": app_id
        }
        
        # 发送请求（普通用户权限）
        response = self.api.get(
            url=self.url,
            params=params,
            auth_type="user"
        )
        
        # 解析和格式化响应
        result, error = self.api.parse_response(response)
        return self.api.format_result(result, error)

# 测试示例
if __name__ == "__main__":
    get_vo_api = AppGetVoApi()
    result = get_vo_api.get_app_vo(
        app_id=1  # 替换为实际的应用ID
    )
    print(result)